"use client"
import { ChartsConfig } from "@/const/chartsConfig"
function Charts() {
    const chartsChange = (chart) => {
        console.log(chart);
        
    }
    return (
        <div className="chartsWrap">
            {ChartsConfig.map((chart, _) => {
                return <div key={chart.value} className="chartsItem" onClick={()=>{return chartsChange(chart)}}>{chart.label}</div>
            })}
        </div>

    )
}

export default Charts